
#include <VolumeUnit.h>

const int __BASE_UNIT__ = 1;

const int TSP_TO_BASE = __BASE_UNIT__;
const int TBSP_TO_BASE = 3 * TSP_TO_BASE;
const int OZ_TO_BASE = 2 * TBSP_TO_BASE;

VolumeUnit::VolumeUnit(int factorToBase):Unit(factorToBase)
{
}
VolumeUnit& VolumeUnit::getBaseUnit()
{
	static VolumeUnit theBase(__BASE_UNIT__);
	
	return theBase;
}
VolumeUnit& VolumeUnit::getTspUnit()
{
	static VolumeUnit theTSP(TSP_TO_BASE);
	
	return theTSP;
}
VolumeUnit& VolumeUnit::getTbspUnit()
{
	static VolumeUnit theTBSP(TBSP_TO_BASE);
	
	return theTBSP;
}
VolumeUnit& VolumeUnit::getOzUnit()
{
	static VolumeUnit theOZ(OZ_TO_BASE);
	
	return theOZ;
}
